package geektime.jdk.classanalyze;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;

public class ClassFile {

    public static int getSum(int a, int b) {
        return (a + b);
    }

    public String localDateTimeToString(LocalDateTime ldt){
        String format = ldt.atZone(ZoneId.of("Asia/Shanghai")).format(DateTimeFormatter.ofPattern("yyyy-MM-dd " +
            "hh:mm:ss"));
        return format;
    }
}
